package com.zhz.system.contract.response;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 权限查询列表响应
 * @author zhouhengzhe
 * @date 2023/3/30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PermissionFindAllResponse {

    @ApiModelProperty("多个单个查询")
    private List<PermissionFindAllInfo> permissionList;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class PermissionFindAllInfo{
        /**
         * ---------------权限相关开始----------------
         */
        @ApiModelProperty("主键ID")
        private String id;

        @ApiModelProperty("权限描述")
        private String description;

        @ApiModelProperty("权限名称")
        private String name;

        @ApiModelProperty("权限类型 1为菜单 2为功能 3为API")
        private Integer type;

        @ApiModelProperty("主键")
        private String pid;

        @ApiModelProperty("code码")
        private String code;

        @ApiModelProperty("企业可见性 0：不可见，1：可见")
        private Integer enVisible;
    }

}
